﻿using DemoStock.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace DemoStock.Common
{
    public class MoiveDataTemplateSelector: DataTemplateSelector
    {
        public DataTemplate DefaultTempalte { get; set; }
        public DataTemplate SkeletonTemplate { get; set; }

        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            //if ((item as MovieModel).ShowShadow)
            //{
            //    return SkeletonTemplate;
            //}
            return DefaultTempalte;
        }
    }
}
